<extend name="Layout/ins_page" />
<block name="content">
	{:W('PageHeader/simple',array('name'=>'新建报表'))}
	<div class="sub-frame gray">
		<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   >
			<input type="hidden" id="ajax" name="ajax" value="0">
			<input type="hidden" id="folder" name="folder" value="{$folder}">
			<input type="hidden" id="fid" name="fid" value="{$folder}">
			<input type="hidden" id="opmode" name="opmode" value="add">

			<div class="frame">
				<div class="bit-1">
					<div class="layui-form-item">
						<label class="layui-form-label" for="name">标题：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="name" name="name" value=""  check="required" info="请输入文件名">
						</div>
					</div>
				</div>
			</div>
			<div class="frame">
				<volist name="field_list" id="udf_vo">
					{:W('UserDefineField/edit',array($udf_vo))}
				</volist>
			</div>
			<div class="frame">
				<div class="bit-1">
					<div class="layui-form-item">
						<div class="layui-input-block">
							<textarea class="editor" id="content" name="content" style="width:100%;height:300px;" check="required" info="请输入内容"></textarea>
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item">
						<label class="layui-form-label" for="name">附件：</label>
						<div class="layui-input-block">
							{:W('FileUpload/add')}
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input class="btn" type="button" value="保存" id="btn_save">
							<input class="btn btn-cancel" type="button" value="取消" onclick="go_return_url();">
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global', 'uploader', 'editor'], function() {
			var $ = layui.jquery;

			$("#btn_save").on('click', function() {
				send_form('form_data', "{:U('save')}", '', function() {

				});

			});
		});
	</script>
</block>